
<!DOCTYPE html>
<html>
  <head>
    
<meta charset="utf-8" >

<title>尚视界1.44寸屏microblocks编译配置 | 集邮</title>
<meta name="description" content="集邮不是集邮，可能是某种收藏癖好，收集创客相关">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="shortcut icon" href="https://djzrs.gitee.io/jiyou/favicon.ico?v=1711621826170">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
<link rel="stylesheet" href="https://djzrs.gitee.io/jiyou/styles/main.css">



<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>



  </head>
  <body>
    <div id="app" class="main">
      <div class="site-header-container">
  <div class="site-header">
    <div class="left">
      <a href="https://djzrs.gitee.io/jiyou">
        <img class="avatar" src="https://djzrs.gitee.io/jiyou/images/avatar.png?v=1711621826170" alt="" width="32px" height="32px">
      </a>
      <a href="https://djzrs.gitee.io/jiyou">
        <h1 class="site-title">集邮</h1>
      </a>
    </div>
    <div class="right">
      <transition name="fade">
        <i class="icon" :class="{ 'icon-close-outline': menuVisible, 'icon-menu-outline': !menuVisible }" @click="menuVisible = !menuVisible"></i>
      </transition>
    </div>
  </div>
</div>

<transition name="fade">
  <div class="menu-container" style="display: none;" v-show="menuVisible">
    <div class="menu-list">
      
        
          <a href="https://djzrs.gitee.io/jiyou" class="menu purple-link">
            首页
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/archives" class="menu purple-link">
            归档
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/tags" class="menu purple-link">
            标签
          </a>
        
      
        
          <a href="https://djzrs.gitee.io/jiyou/qfwytkg2n" class="menu purple-link">
            关于
          </a>
        
      
    </div>
  </div>
</transition>


      <div class="content-container">
        <div class="post-detail">
          
            <div class="feature-container" style="background-image: url('https://djzrs.gitee.io/jiyou/post-images/tAT_jwKDq.jpg')">
            </div>
          
          <h2 class="post-title">尚视界1.44寸屏microblocks编译配置</h2>
          <div class="post-info post-detail-info">
            <span><i class="icon-calendar-outline"></i> 2024-03-13</span>
            
              <span>
                <i class="icon-pricetags-outline"></i>
                
                  <a href="https://djzrs.gitee.io/jiyou/zKPqgSX7R/">
                    TFT彩屏
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/vJybGLyFZl/">
                    屏
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/RRd-JbImdC/">
                    库
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/tn4UMDI-DK/">
                    编译固件
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/AxzC1kKTfI/">
                    ST7735
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/7JsS7JlV-Y/">
                    vscode
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/RYaa0h1hAd/">
                    固件
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/0HTeykVEBn/">
                    显示屏
                    
                      ，
                    
                  </a>
                
                  <a href="https://djzrs.gitee.io/jiyou/3MLFZkLZS/">
                    microblocks
                    
                  </a>
                
              </span>
            
          </div>
          <div class="post-content" v-pre>
            <p>乌龙<br>
我一看8块钱还包邮还带字库买一块回来试试，今天问了店铺客服字库怎么用客服说不带字库呀，原来是配图错了他家美工把图配错了，然后他就送了我一块带字库的串口屏，本来我还想学着韩老师来个退款不退货呢</p>
<!-- more -->
<p><strong>最终效果</strong></p>
<figure data-type="image" tabindex="1"><img src="https://djzrs.gitee.io/jiyou/post-images/1710330011611.png" alt="1710330011611" loading="lazy"></figure>
<p><strong>使用ESP32S3做的实验</strong></p>
<pre><code>[env:esp32-s37735]
platform = espressif32
board = esp32-s3-devkitc-1
board_build.partitions = no_ota.csv
build_flags = -D BLE_IDE -D S37735
lib_deps =
	Adafruit GFX Library
	Adafruit ST7735 and ST7789 Library
	Adafruit BusIO
	paulstoffregen/OneWire
	WebSockets
	256dpi/MQTT
	NimBLE-Arduino
</code></pre>
<figure data-type="image" tabindex="2"><img src="https://djzrs.gitee.io/jiyou/post-images/image-20240313145954583.png" alt="image-20240313145954583" loading="lazy"></figure>
<p><strong>如果换成其他芯片板子</strong></p>
<figure data-type="image" tabindex="3"><img src="https://djzrs.gitee.io/jiyou/post-images/image-20240313192526823.png" alt="image-20240313192526823" loading="lazy"></figure>
<pre><code>//尚视界1.44，旋转方向为0（排针在上方）
	#elif defined(S37735)
		#include &quot;Adafruit_GFX.h&quot;
		#include &quot;Adafruit_ST7735.h&quot;

		#define TFT_MOSI 11 //SDA
		#define TFT_SCLK 12 //SCL
		#define TFT_CS 10   //CS
		#define TFT_DC 13   //DC
		#define TFT_RST 14   //RES
		//BL背光可以程序里面控制，或者接3V3或者抄其他的板子
		//#define TFT_BL 4
		//pinMode(TFT_BL, OUTPUT);
		//digitalWrite(TFT_BL, 1);
		#define TFT_WIDTH 128  
		#define TFT_HEIGHT 128
		Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);

		void tftInit() {
			tft.initR(INITR_144GREENTAB);
			tft.setRotation(0);
			tft.fillScreen(ST77XX_BLACK);
			useTFT = true;
		}
</code></pre>
<figure data-type="image" tabindex="4"><img src="https://djzrs.gitee.io/jiyou/post-images/image-20240313192648854.png" alt="image-20240313192648854" loading="lazy"></figure>
<figure data-type="image" tabindex="5"><img src="https://djzrs.gitee.io/jiyou/post-images/image-20240313150137509.png" alt="image-20240313150137509" loading="lazy"></figure>
<p><strong>屏幕像素会偏移，会有彩边或者不能控制整个屏幕，效果如下</strong></p>
<figure data-type="image" tabindex="6"><img src="https://djzrs.gitee.io/jiyou/post-images/1710330196988.png" alt="1710330196988" loading="lazy"></figure>
<p><strong>修改库文件</strong></p>
<figure data-type="image" tabindex="7"><img src="https://djzrs.gitee.io/jiyou/post-images/image-20240313192929001.png" alt="image-20240313192929001" loading="lazy"></figure>
<figure data-type="image" tabindex="8"><img src="https://djzrs.gitee.io/jiyou/post-images/1710333071221.png" alt="1710333071221" loading="lazy"></figure>

          </div>
        </div>

        
          <div class="next-post">
            <a class="purple-link" href="https://djzrs.gitee.io/jiyou/e8Ji4GX3-/">
              <h3 class="post-title">
                下一篇：使用platformio编译microblocks固件
              </h3>
            </a>
          </div>
          
      </div>

      

      <div class="site-footer">
  <div class="slogan">集邮不是集邮，可能是某种收藏癖好，收集创客相关</div>
  <div class="social-container">
    
      
        <a href="https://gitee.com/djzrs/jiyou" target="_blank">
          <i class="fab fa-github"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-twitter"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-weibo"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-zhihu"></i>
        </a>
      
    
      
        <a href="https://qm.qq.com/q/MAQoNdBsw6" target="_blank">
          <i class="fab fa-facebook"></i>
        </a>
      
    
  </div>
  Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a>
联系我：djzrs@qq.com | <a class="rss" href="https://djzrs.gitee.io/jiyou/atom.xml" target="_blank">RSS</a>
</div>


    </div>
    <script type="application/javascript">

hljs.initHighlightingOnLoad()

var app = new Vue({
  el: '#app',
  data: {
    menuVisible: false,
  },
})

</script>




  </body>
</html>
